package com.woniuxy.controller;

import org.springframework.web.client.RestTemplate;

public class Test {
    public static void main(String[] args) {
        for(int i = 0; i < 20; i++){
            MyThread t = new MyThread();
            t.start();
        }

    }
    public static class MyThread extends Thread {
        @Override
        public void run() {
            RestTemplate restTemplate = new RestTemplate();
            restTemplate.getForObject("http://localhost:8086/user/ttt",String.class);
        }
    }
}
